package com.ztesoft.web.baseconfig.db.dao.mapper;

import com.ztesoft.web.baseconfig.db.arg.DmTableRelArg;
import com.ztesoft.web.baseconfig.db.po.DmTableRelPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDmTableRelMapper {

	List<Integer> countByArg(DmTableRelArg arg);

	List<DmTableRelPO> selectByArg(DmTableRelArg arg);

	DmTableRelPO selectByPrimaryKey(DmTableRelPO record);

	DmTableRelPO selectBySourceDataId(Integer id);
	
	List<DmTableRelPO> selectByRelDataId(Integer id);

	List<DmTableRelPO> selectByArgAndPage(DmTableRelArg arg, RowBounds rowBound);

	int insert(DmTableRelPO record);

	int insertSelective(DmTableRelPO record);

	int insertBatch(@Param("list") List<DmTableRelPO> records);

	int updateByArgSelective(@Param("record") DmTableRelPO record, @Param("arg") DmTableRelArg arg);

	int updateByArg(@Param("record") DmTableRelPO record, @Param("arg") DmTableRelArg arg);

	int updateDToA(Integer id);
	int updateTo00X(Integer id);

	int updateByPrimaryKeySelective(DmTableRelPO record);

	int updateByPrimaryKey(DmTableRelPO record);

	int deleteByArg(DmTableRelArg arg);

	int deleteByPrimaryKey(Integer id);

}